package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderOneList> queryOrderList(Map<String, Object> params);

    List<OrderList> getOrderList(Map<String, Object> params);

    OrderOneDetail queryOrderOneDetails(Long orderId);

    OrderDetail queryOrderDetails(Long orderId);

    List<OrderLog> queryOrderLog(Long orderId);

    List<OrderShop> queryOrderShop(String orderItem);

    int updateOrderWarehouse(@Param("orderId") Long orderId, @Param("orderStatus")String orderStatus);

    int updateOrderDeliver(@Param("orderId") Long orderId, @Param("orderStatus")String orderStatus, @Param("expressName")String expressName, @Param("expressCode")String expressCode);
}
